home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / PCGITIME.PY < prev    next >
Encoding:
Python Source  |  1998-10-19  |  350 b   |  10 lines

  1. # pcgitime.py - example pcgi script - JeffBauer@bigfoot.com
  2.  
  3. from time import asctime, localtime, time
  4.  
  5. beginTime = "<html><pre>time started: %s" % asctime(localtime(time()))
  6.  
  7. def getTime(arg=None):
  8.     """It's later than you think (don't remove this docstring)"""
  9.     return "%s\ncurrent time: %s" % (beginTime, asctime(localtime(time())))
  10.